Integrand size = 27, antiderivative size = 110 \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=\frac {e (4 d+e x) \sqrt {d^2-e^2 x^2}}{2 x}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}+2 d e^2 \arctan \left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )-\frac {1}{2} d e^2 \text {arctanh}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right ) \]
-1/2*(-e^2*x^2+d^2)^(3/2)/x^2+2*d*e^2*arctan(e*x/(-e^2*x^2+d^2)^(1/2))-1/2 *d*e^2*arctanh((-e^2*x^2+d^2)^(1/2)/d)+1/2*e*(e*x+4*d)*(-e^2*x^2+d^2)^(1/2 )/x
Time = 0.32 (sec) , antiderivative size = 124, normalized size of antiderivative = 1.13 \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=-\frac {\left (d^2-4 d e x-2 e^2 x^2\right ) \sqrt {d^2-e^2 x^2}}{2 x^2}+d e^2 \text {arctanh}\left (\frac {\sqrt {-e^2} x-\sqrt {d^2-e^2 x^2}}{d}\right )+2 d e \sqrt {-e^2} \log \left (-\sqrt {-e^2} x+\sqrt {d^2-e^2 x^2}\right ) \]
-1/2*((d^2 - 4*d*e*x - 2*e^2*x^2)*Sqrt[d^2 - e^2*x^2])/x^2 + d*e^2*ArcTanh [(Sqrt[-e^2]*x - Sqrt[d^2 - e^2*x^2])/d] + 2*d*e*Sqrt[-e^2]*Log[-(Sqrt[-e^ 2]*x) + Sqrt[d^2 - e^2*x^2]]
Time = 0.29 (sec) , antiderivative size = 106, normalized size of antiderivative = 0.96, number of steps used = 11, number of rules used = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.370, Rules used = {570, 540, 27, 536, 538, 224, 216, 243, 73, 221}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx\) |
\(\Big \downarrow \) 570 |
\(\displaystyle \int \frac {(d-e x)^2 \sqrt {d^2-e^2 x^2}}{x^3}dx\) |
\(\Big \downarrow \) 540 |
\(\displaystyle -\frac {\int \frac {d^2 e (4 d-e x) \sqrt {d^2-e^2 x^2}}{x^2}dx}{2 d^2}-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {1}{2} e \int \frac {(4 d-e x) \sqrt {d^2-e^2 x^2}}{x^2}dx-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 536 |
\(\displaystyle -\frac {1}{2} e \left (\int \frac {-e d^2-4 e^2 x d}{x \sqrt {d^2-e^2 x^2}}dx-\frac {(4 d+e x) \sqrt {d^2-e^2 x^2}}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 538 |
\(\displaystyle -\frac {1}{2} e \left (d^2 (-e) \int \frac {1}{x \sqrt {d^2-e^2 x^2}}dx-4 d e^2 \int \frac {1}{\sqrt {d^2-e^2 x^2}}dx-\frac {(4 d+e x) \sqrt {d^2-e^2 x^2}}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 224 |
\(\displaystyle -\frac {1}{2} e \left (d^2 (-e) \int \frac {1}{x \sqrt {d^2-e^2 x^2}}dx-4 d e^2 \int \frac {1}{\frac {e^2 x^2}{d^2-e^2 x^2}+1}d\frac {x}{\sqrt {d^2-e^2 x^2}}-\frac {(4 d+e x) \sqrt {d^2-e^2 x^2}}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle -\frac {1}{2} e \left (d^2 (-e) \int \frac {1}{x \sqrt {d^2-e^2 x^2}}dx-4 d e \arctan \left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )-\frac {(4 d+e x) \sqrt {d^2-e^2 x^2}}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 243 |
\(\displaystyle -\frac {1}{2} e \left (-\frac {1}{2} d^2 e \int \frac {1}{x^2 \sqrt {d^2-e^2 x^2}}dx^2-4 d e \arctan \left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )-\frac {(4 d+e x) \sqrt {d^2-e^2 x^2}}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 73 |
\(\displaystyle -\frac {1}{2} e \left (\frac {d^2 \int \frac {1}{\frac {d^2}{e^2}-\frac {x^4}{e^2}}d\sqrt {d^2-e^2 x^2}}{e}-4 d e \arctan \left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )-\frac {(4 d+e x) \sqrt {d^2-e^2 x^2}}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
\(\Big \downarrow \) 221 |
\(\displaystyle -\frac {1}{2} e \left (-4 d e \arctan \left (\frac {e x}{\sqrt {d^2-e^2 x^2}}\right )+d e \text {arctanh}\left (\frac {\sqrt {d^2-e^2 x^2}}{d}\right )-\frac {\sqrt {d^2-e^2 x^2} (4 d+e x)}{x}\right )-\frac {\left (d^2-e^2 x^2\right )^{3/2}}{2 x^2}\) |
-1/2*(d^2 - e^2*x^2)^(3/2)/x^2 - (e*(-(((4*d + e*x)*Sqrt[d^2 - e^2*x^2])/x ) - 4*d*e*ArcTan[(e*x)/Sqrt[d^2 - e^2*x^2]] + d*e*ArcTanh[Sqrt[d^2 - e^2*x ^2]/d]))/2
3.2.65.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[ {p = Denominator[m]}, Simp[p/b Subst[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] && Lt Q[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntL inearQ[a, b, c, d, m, n, x]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x /Rt[-a/b, 2]], x] /; FreeQ[{a, b}, x] && NegQ[a/b]
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b}, x] && !GtQ[a, 0]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[1/2 Subst[In t[x^((m - 1)/2)*(a + b*x)^p, x], x, x^2], x] /; FreeQ[{a, b, m, p}, x] && I ntegerQ[(m - 1)/2]
Int[(((c_) + (d_.)*(x_))*((a_) + (b_.)*(x_)^2)^(p_))/(x_)^2, x_Symbol] :> S imp[(-(2*c*p - d*x))*((a + b*x^2)^p/(2*p*x)), x] + Int[(a*d + 2*b*c*p*x)*(( a + b*x^2)^(p - 1)/x), x] /; FreeQ[{a, b, c, d}, x] && GtQ[p, 0] && Integer Q[2*p]
Int[((c_) + (d_.)*(x_))/((x_)*Sqrt[(a_) + (b_.)*(x_)^2]), x_Symbol] :> Simp [c Int[1/(x*Sqrt[a + b*x^2]), x], x] + Simp[d Int[1/Sqrt[a + b*x^2], x] , x] /; FreeQ[{a, b, c, d}, x]
Int[(x_)^(m_)*((c_) + (d_.)*(x_))^(n_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol ] :> With[{Qx = PolynomialQuotient[(c + d*x)^n, x, x], R = PolynomialRemain der[(c + d*x)^n, x, x]}, Simp[R*x^(m + 1)*((a + b*x^2)^(p + 1)/(a*(m + 1))) , x] + Simp[1/(a*(m + 1)) Int[x^(m + 1)*(a + b*x^2)^p*ExpandToSum[a*(m + 1)*Qx - b*R*(m + 2*p + 3)*x, x], x], x]] /; FreeQ[{a, b, c, d, p}, x] && IG tQ[n, 1] && ILtQ[m, -1] && GtQ[p, -1] && IntegerQ[2*p]
Int[((e_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] :> Simp[c^(2*n)/a^n Int[(e*x)^m*((a + b*x^2)^(n + p)/(c - d*x)^ n), x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && EqQ[b*c^2 + a*d^2, 0] && I LtQ[n, -1] && !(IGtQ[m, 0] && ILtQ[m + n, 0] && !GtQ[p, 1])
Time = 0.44 (sec) , antiderivative size = 116, normalized size of antiderivative = 1.05
method | result | size |
risch | \(-\frac {\sqrt {-e^{2} x^{2}+d^{2}}\, \left (-2 e^{2} x^{2}-4 d e x +d^{2}\right )}{2 x^{2}}+\frac {2 d \,e^{3} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{\sqrt {e^{2}}}-\frac {d^{2} e^{2} \ln \left (\frac {2 d^{2}+2 \sqrt {d^{2}}\, \sqrt {-e^{2} x^{2}+d^{2}}}{x}\right )}{2 \sqrt {d^{2}}}\) | \(116\) |
default | \(\frac {-\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {7}{2}}}{2 d^{2} x^{2}}-\frac {5 e^{2} \left (\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {5}{2}}}{5}+d^{2} \left (\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}{3}+d^{2} \left (\sqrt {-e^{2} x^{2}+d^{2}}-\frac {d^{2} \ln \left (\frac {2 d^{2}+2 \sqrt {d^{2}}\, \sqrt {-e^{2} x^{2}+d^{2}}}{x}\right )}{\sqrt {d^{2}}}\right )\right )\right )}{2 d^{2}}}{d^{2}}+\frac {3 e^{2} \left (\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {5}{2}}}{5}+d^{2} \left (\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}{3}+d^{2} \left (\sqrt {-e^{2} x^{2}+d^{2}}-\frac {d^{2} \ln \left (\frac {2 d^{2}+2 \sqrt {d^{2}}\, \sqrt {-e^{2} x^{2}+d^{2}}}{x}\right )}{\sqrt {d^{2}}}\right )\right )\right )}{d^{4}}-\frac {2 e \left (-\frac {\left (-e^{2} x^{2}+d^{2}\right )^{\frac {7}{2}}}{d^{2} x}-\frac {6 e^{2} \left (\frac {x \left (-e^{2} x^{2}+d^{2}\right )^{\frac {5}{2}}}{6}+\frac {5 d^{2} \left (\frac {x \left (-e^{2} x^{2}+d^{2}\right )^{\frac {3}{2}}}{4}+\frac {3 d^{2} \left (\frac {x \sqrt {-e^{2} x^{2}+d^{2}}}{2}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-e^{2} x^{2}+d^{2}}}\right )}{2 \sqrt {e^{2}}}\right )}{4}\right )}{6}\right )}{d^{2}}\right )}{d^{3}}-\frac {e \left (\frac {\left (-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {7}{2}}}{3 d e \left (x +\frac {d}{e}\right )^{2}}+\frac {5 e \left (\frac {\left (-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {5}{2}}}{5}+d e \left (-\frac {\left (-2 \left (x +\frac {d}{e}\right ) e^{2}+2 d e \right ) \left (-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {3}{2}}}{8 e^{2}}+\frac {3 d^{2} \left (-\frac {\left (-2 \left (x +\frac {d}{e}\right ) e^{2}+2 d e \right ) \sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}{4 e^{2}}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}\right )}{2 \sqrt {e^{2}}}\right )}{4}\right )\right )}{3 d}\right )}{d^{3}}-\frac {3 e^{2} \left (\frac {\left (-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {5}{2}}}{5}+d e \left (-\frac {\left (-2 \left (x +\frac {d}{e}\right ) e^{2}+2 d e \right ) \left (-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )\right )^{\frac {3}{2}}}{8 e^{2}}+\frac {3 d^{2} \left (-\frac {\left (-2 \left (x +\frac {d}{e}\right ) e^{2}+2 d e \right ) \sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}{4 e^{2}}+\frac {d^{2} \arctan \left (\frac {\sqrt {e^{2}}\, x}{\sqrt {-\left (x +\frac {d}{e}\right )^{2} e^{2}+2 d e \left (x +\frac {d}{e}\right )}}\right )}{2 \sqrt {e^{2}}}\right )}{4}\right )\right )}{d^{4}}\) | \(816\) |
-1/2*(-e^2*x^2+d^2)^(1/2)*(-2*e^2*x^2-4*d*e*x+d^2)/x^2+2*d*e^3/(e^2)^(1/2) *arctan((e^2)^(1/2)*x/(-e^2*x^2+d^2)^(1/2))-1/2*d^2*e^2/(d^2)^(1/2)*ln((2* d^2+2*(d^2)^(1/2)*(-e^2*x^2+d^2)^(1/2))/x)
Time = 0.29 (sec) , antiderivative size = 119, normalized size of antiderivative = 1.08 \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=-\frac {8 \, d e^{2} x^{2} \arctan \left (-\frac {d - \sqrt {-e^{2} x^{2} + d^{2}}}{e x}\right ) - d e^{2} x^{2} \log \left (-\frac {d - \sqrt {-e^{2} x^{2} + d^{2}}}{x}\right ) - 2 \, d e^{2} x^{2} - {\left (2 \, e^{2} x^{2} + 4 \, d e x - d^{2}\right )} \sqrt {-e^{2} x^{2} + d^{2}}}{2 \, x^{2}} \]
-1/2*(8*d*e^2*x^2*arctan(-(d - sqrt(-e^2*x^2 + d^2))/(e*x)) - d*e^2*x^2*lo g(-(d - sqrt(-e^2*x^2 + d^2))/x) - 2*d*e^2*x^2 - (2*e^2*x^2 + 4*d*e*x - d^ 2)*sqrt(-e^2*x^2 + d^2))/x^2
Result contains complex when optimal does not.
Time = 4.33 (sec) , antiderivative size = 347, normalized size of antiderivative = 3.15 \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=d^{2} \left (\begin {cases} - \frac {e \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}}{2 x} + \frac {e^{2} \operatorname {acosh}{\left (\frac {d}{e x} \right )}}{2 d} & \text {for}\: \left |{\frac {d^{2}}{e^{2} x^{2}}}\right | > 1 \\\frac {i d^{2}}{2 e x^{3} \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} - \frac {i e}{2 x \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} - \frac {i e^{2} \operatorname {asin}{\left (\frac {d}{e x} \right )}}{2 d} & \text {otherwise} \end {cases}\right ) - 2 d e \left (\begin {cases} \frac {i d}{x \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} + i e \operatorname {acosh}{\left (\frac {e x}{d} \right )} - \frac {i e^{2} x}{d \sqrt {-1 + \frac {e^{2} x^{2}}{d^{2}}}} & \text {for}\: \left |{\frac {e^{2} x^{2}}{d^{2}}}\right | > 1 \\- \frac {d}{x \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} - e \operatorname {asin}{\left (\frac {e x}{d} \right )} + \frac {e^{2} x}{d \sqrt {1 - \frac {e^{2} x^{2}}{d^{2}}}} & \text {otherwise} \end {cases}\right ) + e^{2} \left (\begin {cases} \frac {d^{2}}{e x \sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}} - d \operatorname {acosh}{\left (\frac {d}{e x} \right )} - \frac {e x}{\sqrt {\frac {d^{2}}{e^{2} x^{2}} - 1}} & \text {for}\: \left |{\frac {d^{2}}{e^{2} x^{2}}}\right | > 1 \\- \frac {i d^{2}}{e x \sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} + i d \operatorname {asin}{\left (\frac {d}{e x} \right )} + \frac {i e x}{\sqrt {- \frac {d^{2}}{e^{2} x^{2}} + 1}} & \text {otherwise} \end {cases}\right ) \]
d**2*Piecewise((-e*sqrt(d**2/(e**2*x**2) - 1)/(2*x) + e**2*acosh(d/(e*x))/ (2*d), Abs(d**2/(e**2*x**2)) > 1), (I*d**2/(2*e*x**3*sqrt(-d**2/(e**2*x**2 ) + 1)) - I*e/(2*x*sqrt(-d**2/(e**2*x**2) + 1)) - I*e**2*asin(d/(e*x))/(2* d), True)) - 2*d*e*Piecewise((I*d/(x*sqrt(-1 + e**2*x**2/d**2)) + I*e*acos h(e*x/d) - I*e**2*x/(d*sqrt(-1 + e**2*x**2/d**2)), Abs(e**2*x**2/d**2) > 1 ), (-d/(x*sqrt(1 - e**2*x**2/d**2)) - e*asin(e*x/d) + e**2*x/(d*sqrt(1 - e **2*x**2/d**2)), True)) + e**2*Piecewise((d**2/(e*x*sqrt(d**2/(e**2*x**2) - 1)) - d*acosh(d/(e*x)) - e*x/sqrt(d**2/(e**2*x**2) - 1), Abs(d**2/(e**2* x**2)) > 1), (-I*d**2/(e*x*sqrt(-d**2/(e**2*x**2) + 1)) + I*d*asin(d/(e*x) ) + I*e*x/sqrt(-d**2/(e**2*x**2) + 1), True))
Time = 0.29 (sec) , antiderivative size = 123, normalized size of antiderivative = 1.12 \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=\frac {2 \, d e^{3} \arcsin \left (\frac {e^{2} x}{d \sqrt {e^{2}}}\right )}{\sqrt {e^{2}}} - \frac {1}{2} \, d e^{2} \log \left (\frac {2 \, d^{2}}{{\left | x \right |}} + \frac {2 \, \sqrt {-e^{2} x^{2} + d^{2}} d}{{\left | x \right |}}\right ) + \frac {1}{2} \, \sqrt {-e^{2} x^{2} + d^{2}} e^{2} + \frac {2 \, \sqrt {-e^{2} x^{2} + d^{2}} d e}{x} - \frac {{\left (-e^{2} x^{2} + d^{2}\right )}^{\frac {3}{2}}}{2 \, x^{2}} \]
2*d*e^3*arcsin(e^2*x/(d*sqrt(e^2)))/sqrt(e^2) - 1/2*d*e^2*log(2*d^2/abs(x) + 2*sqrt(-e^2*x^2 + d^2)*d/abs(x)) + 1/2*sqrt(-e^2*x^2 + d^2)*e^2 + 2*sqr t(-e^2*x^2 + d^2)*d*e/x - 1/2*(-e^2*x^2 + d^2)^(3/2)/x^2
Exception generated. \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Limit: Max order reached or unable to make series expansion Error: Bad Argument Value
Timed out. \[ \int \frac {\left (d^2-e^2 x^2\right )^{5/2}}{x^3 (d+e x)^2} \, dx=\int \frac {{\left (d^2-e^2\,x^2\right )}^{5/2}}{x^3\,{\left (d+e\,x\right )}^2} \,d x \]